package com.weirdor.wxchat;

import com.weirdor.wxchat.www.listen.ApplicationReadyEventListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ImportResource;


/**
 * Created by weirdor on 2017/10/25.
 */

@SpringBootApplication(exclude = MongoAutoConfiguration.class)
@ImportResource(value = "classpath:spring/spring-bean.xml")
public class Web {

    public static void main(String[] args) {
        System.out.println("***************************************************************");
        System.out.println("启动www...");

        SpringApplication app = new SpringApplication(Web.class);

        app.addListeners(new ApplicationReadyEventListener());
        app.run(args);
    }

}